/* SG 1.0 Color Variables */
:root {
    --white: #ffffff;
    --black: #171717;
    --mediumBlue: #383753;
    --darkBlue: #060528;
    --blue: #36A8FF;
    --lBlue: #5ad2ff;
    --yellow: #FABE25;
    --lYellow: #FFFC66;
    --green: #16A085;
    --lGreen: #CCF52B;
    --orange: #F7600F;
    --lOrange: #FF9E17;
}
body {
    --textColor: var(--black);
    --bgColor: var(--white);
    --borderColor: #cfcfe5;
    --inputBg: #f2f2f7;
    --rowBg:#fff;
    --activeBg: #f7f7fc;
    --baseColor: var(--blue);
    --baseLightColor: var(--lBlue);
    --baseGradient: linear-gradient(to bottom right, var(--textColor), var(--baseColor));
    --invertedGradient: linear-gradient(to bottom left, var(--textColor), var(--baseColor));
    --verticalGradient: linear-gradient(to bottom, var(--textColor), var(--baseColor));
}
body.darkmode {
    --textColor: var(--white);
    --bgColor: var(--black);
    --borderColor: #3d3d3d ;
    --inputBg: rgba(255,255,255,.05);
    --rowBg: #202020;
    --activeBg: #292929;
    --baseColor: var(--blue);
    --baseLightColor: var(--lBlue);
    --baseGradient: linear-gradient(to bottom right, var(--baseColor), var(--baseLightColor));
    --invertedGradient: linear-gradient(to bottom left, var(--baseColor), var(--baseLightColor));
    --verticalGradient: linear-gradient(to bottom, var(--baseColor), var(--baseLightColor));
}
body.yellow {
    --baseColor: var(--lYellow);
    --baseLightColor: var(--yellow);
}
body.green {
    --baseColor: var(--green);
    --baseLightColor: var(--lGreen);
}
body.orange {
    --baseColor: var(--orange);
    --baseLightColor: var(--lOrange);
}
::selection {
    background: var(--baseLightColor);
    color: var(--darkBlue);
}
body.yellow ::selection {
    background: var(--yellow);
}
::placeholder { /* Chrome/Opera/Safari */
  color: var(--textColor) !important;
    opacity: .5;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: var(--textColor) !important;
    opacity: .5;
}
::-moz-placeholder { /* Firefox 19+ */
    color: var(--textColor) !important;
    opacity: .5;
}
:-ms-input-placeholder { /* IE 10+ */
    color: var(--textColor) !important;
    opacity: .5;
}
:-moz-placeholder { /* Firefox 18- */
    color: var(--textColor) !important;
    opacity: .5;
}
*:focus, *:active {
    outline: none;
}
::-webkit-scrollbar-track
{
    -webkit-box-shadow: none;
    background-color: #F5F5F5;
    border: 0;
}
::-webkit-scrollbar
{
    width: 5px;
    height: 5px;
    background-color: #F5F5F5;
}
::-webkit-scrollbar-thumb
{
    background-color: var(--baseColor);
    border: 0;
    border-radius: 3px;
}

a:hover, header .add:hover, tr.controlData a:hover {
    color: var(--baseLightColor);
}
.textGradient {
    color: var(--baseColor);
    background-image: var(--baseGradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

a.textGradient:hover {
    color: var(--baseLightColor);
    background-position: center right;
}

body, html {
    font-family: 'Poppins', sans-serif;
}

.monoFont {
    font-family: 'Ubuntu Mono', 'Courier New', Courier, monospace;
}

th, table th, table.crdDetails td.label, tr.details table .label, .yaml .label {
    font-weight: 600;
}

body, #sets h4, #sets h3, th, .tabs li a, #keyword, table.crdDetails td.label, tr.details table .label, .details th, .timestamp span.ms, span.timestamp span.ms, .yaml .label, #logo h1, #helpTooltip, .form label, .options label, .daterangepicker td.available:not(.off):not(.in-range):not(.active), .form input, .form select, .form textarea, ul.select, .options select, #delete .tooltip form input, .darkmode #sets h4, .darkmode h4, .darkmode #sets h3, .darkmode h3, .darkmode h2, .darkmode thead, .darkmode .tabs li a, .darkmode #keyword, .darkmode .options li.textFilter .search, .darkmode #help h3.title, .darkmode table.crdDetails td.label, .darkmode .details th, .darkmode tr.details table td.label, .darkmode .yaml .label, .darkmode .logMessage .param, .darkmode .logDetails td.param, .darkmode .form label, .darkmode ul.select a {
    color: var(--textColor);
}

#nav svg, .help svg > path, #topMenu path {
    fill: var(--textColor);
}

.help svg g path {
    fill: var(--bgColor);
}

.namespace svg path, #current-namespace svg path, .nav-item svg path, #logout svg path {
    fill: var(--blue);
}

.addnew svg g, #logout svg path {
    stroke: var(--blue);
}

.actions a:hover svg path, tr.controlData a:hover svg path {
    fill: var(--baseLightColor);
}

#side a.addnew:hover svg * {
    stroke: var(--baseLightColor) !important;
}

.daterangepicker td.active, .daterangepicker td.active:hover, .daterangepicker td.available:hover {
    background-color: var(--blue) !important;
}

.daterangepicker td.active.deactivate:not(:hover) {
    background-color: transparent !important;
    color: var(--textColor);
}

.btn {
    font-weight: 600;
}

.btn:hover {
    background-color: var(--baseLightColor);
    border-color: var(--baseLightColor);
}

.toolbar .btn:hover, button:hover {
    border-color: var(--lBlue);
}

td.operationType span, .card .operationType {
    color: var(--baseColor);
    border: 1px solid var(--baseColor);
    border-radius: 15px;
    padding: 2px 10px;
    position: relative;
    white-space: nowrap;
}
.dbopIcon:before {
    width: 15px;
    height: 15px;
    display: inline-block;
    content: "";
    position: relative;
    top: 3px;
    left: -3px;
}
.dbopIcon.benchmark:before {
    background: url();
    top: 2px;
}
.dbopIcon.minorVersionUpgrade:before {
    background: url();
}
.dbopIcon.majorVersionUpgrade:before {
    background: url();
}
.dbopIcon.repack:before {
    background: url();
}
.dbopIcon.restart:before {
    background: url();
}
.dbopIcon.vacuum:before {
    background: url();
}
.dbopIcon.securityUpgrade:before {
    background: url();
}

.darkmode #nav {
    background: var(--bgColor);
}

.btn, .toolbar .filter.open .toggle, .toolbar .filter.open .toggle:after, .btn:hover, .form .btn:not(.border), .options input[type="checkbox"]:checked + span, form#login button {
    color: var(--bgColor);
}

.darkmode, #side, .set.conf.active, #nav, table.backups thead, table.logs thead, table.logs th, .set:not(.active) ul.show:before, .tooltip, .contentTooltip .info, .options, .darkmode .daterangepicker, #backups th.actions, #logTooltip.show, #nameTooltip.show, #helpTooltip, #nav .right > div#clone, #nav .right > div#signup, #delete .tooltip form input {
    background-color: var(--bgColor);
}

 #side, .set.conf.active, #nav, .set:not(.active) ul.show:before, .tooltip, .contentTooltip .info, .set.active:not(.conf):not(.backups), .set.active:not(.conf), #current-namespace, .set, #ns-select, ul.breadcrumbs, header .actions, #keyword, table.backups thead, .options, hr, .darkmode .daterangepicker, .darkmode .daterangepicker .calendar-time, .darkmode .daterangepicker .drp-buttons, tbody, tr.details table th, tr.details table td,  td.usedOn li, .content h2, ul.tabs, table.crdDetails td, table.logs thead, .options li.textFilter .search, .filter.columns label, .filter.columns input[type="checkbox"], .darkmode .daterangepicker select.hourselect, .message, .form .header, fieldset, ul.select, .form select, .form input, label.switch, #nav .right > div#clone, .form textarea, #logTooltip.show, #nameTooltip.show, #helpTooltip, #nav .right > div#signup, #signup input, #delete .tooltip h3, #delete .tooltip form input, .grafana iframe, .logInfo.open .logMessage, .logMessage .param, .logDetails.postgres tr:not(:last-of-type), .logDetails.patroni tr:not(:last-of-type), .logDetails table, .logDetails td.param, fieldset .section {
    border-color: var(--borderColor);
}

.set.active, .set.active a:hover, .podStatus tr, ul.select.active li.selected, .darkmode .podStatus tr, .darkmode .clusterConfig tr, .darkmode .form input, .darkmode .form select, .darkmode .form textarea, .darkmode ul#postgresVersion, .darkmode ul#postgresVersion ul, .darkmode .contentTooltip .info, .darkmode ul.select.active li.selected, .clusterConfig tr:nth-child(odd), .crdDetails tr:nth-child(odd), label.switch {
    background-color: var(--activeBg);
}

.form input, ul#postgresVersion, .form select, .form textarea, #keyword, .options label, .options select, #signup form input, table tr:nth-child(4n+2) + tr.details th, table tr:nth-child(4n+2) + tr.details tr:nth-child(even), .logDetails tr:nth-child(even) {
    background-color: var(--inputBg);
}

 ul#postgresVersion ul, table.crdDetails tr, table.crdDetails tr:nth-child(even), table.crdDetails tr:nth-child(even):not(.base) {
    background-color: transparent;
}

.form input[disabled="disabled"], .form select[disabled="disabled"], .form textarea[disabled="disabled"], .form fieldset[disabled="disabled"], label.switch[disabled="disabled"], ul.select a:hover {
    background-color: var(--borderColor);
}

.btn.border:hover, .btn.border, .darkmode .btn.border, .darkmode a.btn.border:not(.clear), fieldset .header button, .darkmode .form button, button {
    color: var(--blue);
}

.form input[disabled="disabled"], .form select[disabled="disabled"], .form textarea[disabled="disabled"], .form fieldset[disabled="disabled"], label.switch[disabled="disabled"] {
    opacity: .45;
}

.form button.border:hover, .btn.border:hover, .daterangepicker button.cancelBtn, .btn.clear:hover {
    background-color: rgb(0 114 255 / 25%);
}

svg.background circle {
    stroke: rgb(0 114 255 / 25%);
}

.darkmode tr.details table th, .darkmode tr.details table td {
    border-color: #444444;
}

/* Pagination Styling */
.v-pagination>ul>li>a {
    font-size: inherit;
}

.darkmode div.v-pagination>ul>li.v-pagination__info>a:hover, .darkmode div.v-pagination>ul>li.v-pagination__list>a:hover, .darkmode div.v-pagination ul li:not(.active):not(.disabled):not(.v-pagination__list):not(.v-pagination__info):not(.v-pagination__slot) a:hover, .darkmode div.v-pagination>ul>li>a {
    background: var(--activeBg);
    border-color: var(--borderColor);
}

.darkmode div.v-pagination>ul>li>a, .darkmode div.v-pagination>ul>li:not(.disabled):not(.v-pagination__info):not(.v-pagination__list)>a:hover, .darkmode div.v-pagination>ul>li:not(.disabled):not(.v-pagination__info):not(.v-pagination__list)>a {
    color: var(--textColor);
}

.darkmode div.v-pagination>ul>li:not(.disabled):not(.v-pagination__info):not(.v-pagination__list)>a:hover {
    filter: brightness(1.2)
}

.darkmode div.v-pagination>ul>li.active>a {
    background: #444;
    color: var(--textColor);
}

.darkmode div.v-pagination>ul>li.v-pagination__list select {
    background: #444;
    color: var(--textColor);
    border-color: var(--borderColor);
}

.connInfo code, .contentTooltip .connInfo pre {
    font-weight: 600;
    font-family: monospace;
}

.contentTooltip .connInfo pre {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 0px;
    background-color: rgba(54, 168, 255, .1);
    border: 1px solid #36A8FF;
    color: #36A8FF;
    border-radius: 5px;
    padding: 0 5px;
    max-width: calc(100% - 30px);
    position: relative;
}

.connInfo li {
    margin-left: 30px;
    padding: 5px 0;
}

.connInfo p {
    line-height: 1.5;
    padding-top: 10px;
}

.copyClipboard {
    position: absolute;
    right: -22px;
    width: 15px;
    height: 15px;
    top: calc(50% - 10px);
}

.copyClipboard:before, .copyClipboard:after {
    width: 9px;
    height: 9px;
    border: 1px solid var(--baseColor);
    border-radius: 2px;
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 3px;
}

.copyClipboard:after {
    background: var(--baseColor);
    top: 7px;
    left: 7px;
}

.copyClipboard:hover:before, .copyClipboard:hover:after {
    border: 1px solid var(--baseLightColor);
    cursor: pointer;
}

.copyClipboard:hover:after {
    background: var(--baseLightColor);
}

#copyText {
    position: fixed;
    z-index: -1;
    left: 200%;
    top: 200%;
    opacity: 0;
}


/*Images*/

.helpTooltip {
    background: url()  no-repeat !important;
}

.darkmode .helpTooltip {
    background: url() no-repeat !important;
}

.helpTooltip:hover, .helpTooltip.show {
    background: url()  no-repeat !important;
}

.noTooltips span.helpTooltip, .noTooltips a.help, .noTooltips #help {
    display: none;
}

header .actions a.documentation:before {
    background: url();
}

.eyeIcon, .eye-icon:after {
    background-image: url();
}

a:hover .eyeIcon, .eye-icon:hover:after  {
    background-image: url();
}

#side svg path, .breadcrumbs svg path {
    fill: var(--baseColor)
}

/* Extra Libraries Override */
.daterangepicker .calendar-table tr {
    background: transparent !important;
}

/* Table rows background fixes */
/* https://gitlab.com/ongresinc/stackgres/-/issues/1107 */

table tr:nth-child(odd), .contentTooltip table tr:nth-child(even), table tr.no-results {
    background: var(--activeBg);
}

.contentTooltip table tr:nth-child(odd) {
    background: var(--bgColor);
}

.contentTooltip table.crdDetails {
    margin-bottom: 0;
    margin-right: 10px;
}

td.label[rowspan] {
    vertical-align: top;
    padding-top: 10px;
}


/* CRD Details */
table.crdDetails {
    margin-bottom: 40px;
    width: auto;
}

table.crdDetails td, table.crdDetails th, .paramDetails td, .paramDetails th {
    border: 1px solid var(--borderColor);
}

table.crdDetails td.label {
    font-weight: bold;
    white-space: nowrap;
}

table.crdDetails td a {
    display: block;
    color: var(--textColor);
}

table.crdDetails td a:hover {
    color: var(--blue);
}

.crdDetails td.usedOn svg, .crdDetails tr.controlData svg {
    float: right;
    position: relative;
    top: 2px;
    margin: 0 10px;
}

.crdDetails tr.controlData td:last-of-type {
    padding-right: 0;
}

.configurationDetails + .paramDetails, .crdDetails + .crdDetails, #createPgConfig .paramDetails {
    margin-top: 30px;
}

.titleLinks a {
    margin: 0 7px;
}

.titleLinks {
    position: absolute;
    margin-top: -33px;
    font-weight: bold;
    text-transform: uppercase;
    right: 0;
}

.fullWidth {
    width: 100% !important;
}

table:not(.fullWidth) td.label {
    width: auto;
}

span.eyeIcon {
    height: 14px;
    width: 19px;
    position: relative;
    top: 1px;
    margin-left: 5px;
    transform: scale(0.85);    
    float: right;
}

#crdSummary span.eyeIcon, #clusterSummary span.eyeIcon {
    margin-right: 7px;
    float: none;
    display: inline-block;
    top: 2px;
}

.flex > div:first-of-type {
    margin-right: 20px;
}

.opDetails {
    flex-grow: 1;
}

.opDetails > div:first-of-type {
    margin-top: 10px;
    margin-bottom: 20px;
}



/*Top Menu*/
#topMenu {
    display: flex;
    float: left;
    margin-left: -15px;
    margin-top: -10px;
    left: 0;
    top: 0;
    padding: 14px;
    width: 50px;
    cursor: pointer;
}

#topMenu:hover svg path {
    fill: var(--baseColor);
    opacity: 1;
}

.hiddenMenu {
    margin-left: 25px;
}

.collapsed #logo {
    margin-left: 40px;
}

.collapsed #logo.hiddenMenu {
    margin-left: 25px;
}

.collapsed .hideCollapsed {
    display: none !important;
}
.collapsed .hideCollapsed.show {
    display: block !important;
}

.showCollapsed {
    display: none !important;
    font-weight: bold;
    position: relative;
}

.showCollapsed:not(:last-child):after {
    content: "";
    display: inline-block;
    border-bottom: 1px solid var(--borderColor);
    width: calc(100% - 50px);
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 30px;
}

.collapsed .showCollapsed {
    display: block !important;
}

.showCollapsed .router-link-exact-active.router-link-active:not(:hover) {
    background: var(--bgColor) !important;
}

.collapsed #main {
    margin-left: 50px;
    width: calc(100% - 50px);
}

.collapsed #topMenu {
    border-right: 1px solid var(--borderColor);
}

/* Forms */

form.form { 
    max-width: 960px;
    width: 960px;
}

form.form .helpTooltip {
    float: right;
    transform: translate(20px, -30px);
}

.header.stickyHeader {
    margin-top: -15px;
    padding-top: 15px;
    margin-bottom: 0;
    background-color: var(--bgColor);
    position: sticky;
    top: 50px;
    z-index: 2;
}

.step {
    display: none;
    width: 100%;
    border: 0;
    padding: 25px 0 0;
    margin-bottom: 0;
}

.step.active {
    display: block;
}

.stepsContainer {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--borderColor);
    background-color: var(--bgColor);
    margin-bottom: 10px;
    padding-top: 25px;
    position: sticky;
    top: 90px;
    z-index: 999;
}

ul.steps {
    display: inline-block;
    margin: 10px 0 20px;
    border: 0;
    padding: 0 28px;
    position: relative;
}

ul.steps li {
    float: left;
    list-style: none;
    position: relative;
    text-align: center;
    margin: 0 7px;
    text-transform: capitalize;
    cursor: pointer;
}

ul.steps li:before {
    content: " ";
    display: block;
    background: var(--bgColor);
    width: 10px;
    height: 10px;
    margin: 0 auto 10px;
    border-radius: 100%;
    border: 2px solid var(--borderColor);
    position: relative;
    z-index: 2;
}

ul.steps li.basic:before {
    background: var(--borderColor);
}

ul.steps li.active:before {
    border-color: var(--baseColor);
    color: var(--bgColor);
}

ul.steps li.basic.active:before {
    background: var(--baseColor);
}

ul.steps li.active {
    color: var(--baseColor);
    font-weight: bold;
}

ul.steps li:after {
    height: 2px;
    background: var(--borderColor);
    content: " ";
    display: block;
    position: absolute;
    width: calc(100% + 20px);
    top: 6px;
    left: -10px;
}

ul.steps li:first-child:after {
    width: calc(50% + 10px);
    left: 50%;
}

ul.steps li:last-child:after {
    width: calc(50% + 10px);
}

ul.steps li.notValid:before {
    border: 2px solid;
    content: "!";
    color: red;
    font-size: 11px;
    text-align: center;
    line-height: 1;
    font-weight: bold;
}

ul.steps li.basic.notValid:before {
    background: red;   
    border-color: red;
    color: var(--bgColor);
}

ul.steps li:not(.basic).notValid:before {
    background: var(--bgColor);   
    border-color: red;
}

ul.steps li.notValid, ul.steps li.active.notValid {
    color: red;
}

.switch + .helpTooltip {
    transform: translate(20px, -47px);
}

.step p {
    display: inline-block;
    margin: 5px 0 10px;
}

.step .fields p {
    margin: 5px 0 30px;
}

.steps a {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

#advancedMode + span {
    position: relative;
    top: -1px;
}

.steps label {
    position: absolute;
    width: 95px;
    top: 11px;
}

.steps button.arrow {
    position: absolute;
    width: 25px;
    height: 25px;
    padding: 0;
    top: -16px;
    background: var(--inputBg);
    border-color: var(--borderColor);
}

.steps button.arrow:hover {
    border-color: var(--baseColor);
}

.steps button.arrow:after {
    content: " ";
    width: 6px;
    height: 6px;
    border: 1px solid var(--gray3);
    display: block;
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
}

.darkmode .steps button.arrow:after {
    border-color: var(--gray5);
}

.steps button.arrow:hover:after {
    border-color: var(--baseColor);
}

.steps button.arrow[disabled] {
    border-color: transparent;
}

.steps button.arrow[disabled]:after {
    border-color: var(--borderColor);
}

.steps button.prev {
    left: 0;
}

.steps button.next {
    right: 0;
}

.steps button.next:after {
    border-left: 0;
    border-bottom: 0;
    left: 6px;
}

.steps button.prev:after {
    border-right: 0;
    border-top: 0;
    left: 10px;
}

h2 .helpTooltip, h3 .helpTooltip, h4 .helpTooltip, h5 .helpTooltip, h6 .helpTooltip, label .helpTooltip {
    float: none !important;
    transform: none !important;
    margin-left: 5px;
}

form.form .row-50 .col {
    margin-bottom: 10px;
}

form .sectionTitle {
    display: block;
    margin-bottom: 20px;
}

.darkmode select.plain {
    background-color: var(--activeBg);
    color: #e3e3e3;
}

/* Summary */
.summary ul ul:not(:last-child)::before {
    z-index: 1;
}